Skip to content

Update Vercel function runtime to Node.js 22#1

Open
fouash wants to merge 1 commit intomainfrom
codex/fix-function-runtimes-version-error
Open

Update Vercel function runtime to Node.js 22#1
fouash wants to merge 1 commit intomainfrom
codex/fix-function-runtimes-version-error

Conversation

@fouash
Copy link
Owner

@fouash fouash commented Feb 4, 2026

Motivation

  • Fix Vercel build failure by aligning the function runtime with the repository engines.node (Node.js 22) and Vercel's expected runtime format.

Description

  • Updated vercel.json to use nodejs22.x for the API function, reformatted api/index.js to project style (single quotes), and added .changeset/modern-yaks-listen.md documenting the runtime update.

Testing

  • Ran pnpm lint, pnpm lint:style, and pnpm format (Prettier) and all checks passed after applying formatting.

Codex Task

@vercel
Copy link

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dirxs Error Error Feb 4, 2026 9:19pm

@gemini-code-assist
Copy link

Summary of Changes

Hello @fouash, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses critical Vercel build failures by upgrading the Vercel function runtime to Node.js 22, ensuring compatibility with the project's specified Node.js version. This change is essential for successful deployments and maintaining the application's operational integrity on the Vercel platform.

Highlights

  • Vercel Runtime Update: The Vercel function runtime has been updated from Node.js 18 to Node.js 22 to align with the project's engines.node and resolve build failures.
  • Code Style Alignment: The api/index.js file has been reformatted to use single quotes for import statements, adhering to the project's coding style.
  • Changelog Entry: A new changeset file has been added to document the Vercel runtime update.
Changelog
  • .changeset/modern-yaks-listen.md
    • Added a new changeset file to document the Vercel runtime update to Node.js 22.
  • api/index.js
    • Reformatted import statements to use single quotes, aligning with project style guidelines.
  • vercel.json
    • Updated the runtime for api/index.js from nodejs18.x to nodejs22.x.
    • Applied minor JSON formatting adjustments.
Activity
  • The pull request was created by fouash with the motivation to fix Vercel build failures.
  • The author performed local testing, confirming that pnpm lint, pnpm lint:style, and pnpm format all passed after the changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly updates the Vercel function runtime to Node.js 22, aligning it with the project's specified Node.js version in package.json. The changes also include code style adjustments consistent with the project's formatters and the addition of a proper changeset entry. The modifications are well-justified and address the Vercel build failure mentioned in the description. The changes look good and the pull request is ready to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant